/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

/**
 *
 * @author Jelle
 */
import model.DiagramModel;
import gui.MainFrame;

public class DiagramController {

    private DiagramModel model;
    private MainFrame view;

    /** Constructor
     * @param model
     * @param view
     */
    public DiagramController(DiagramModel model, MainFrame view) {
        this.model = model;
        this.view = view;
        model.addObserver(view.getDiagramPanel());
        view.setVisible(true);

    //... Add listeners to the view.
    // view.addMultiplyListener(new MultiplyListener());
    // view.addClearListener(new ClearListener());
    }

    
}
